package DataStructure.set.TreeSet;

import java.util.Set;
import java.util.TreeSet;

public class TreeSetTest1 {
    public static void main(String[] args) {
        Set<String> set = new TreeSet<>();

        set.add("a");
        set.add("b");
        set.add("c");

        //获取元素
        for(String s:set){
            System.out.println(s);
        }


    }
}
